Skip to content

FELIX-6837: Skip Write-Protection Test on Unsupported File Systems#515

Open
sahvx655-wq wants to merge 1 commit into
apache:masterfrom
sahvx655-wq:fileinstall-skip-write-protection-test
Open

FELIX-6837: Skip Write-Protection Test on Unsupported File Systems#515
sahvx655-wq wants to merge 1 commit into
apache:masterfrom
sahvx655-wq:fileinstall-skip-write-protection-test

Conversation

@sahvx655-wq

Copy link
Copy Markdown

Modifies testInvalidTempDir in DirectoryWatcherTest to verify that parent.setWritable(false) actually takes effect before proceeding with the test.

Some file systems and operating systems do not reliably enforce directory write-permission changes (for example, common Windows/NTFS configurations for the directory owner). In such environments, the test's assumptions are invalid and can lead to false failures.

If write access cannot be revoked as expected, the test exits early instead of failing, ensuring consistent behavior across platforms while preserving test coverage where permission enforcement is supported.

@sahvx655-wq sahvx655-wq force-pushed the fileinstall-skip-write-protection-test branch from 03dcb49 to 99f0c30 Compare June 17, 2026 08:51
@sahvx655-wq sahvx655-wq changed the title Skip Write-Protection Test on Unsupported File Systems FELIX-6837: Skip Write-Protection Test on Unsupported File Systems Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant